package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.entity.TuiJianRen;
import com.yl.auth.mapper.TuiJianRenMapper;
import com.yl.auth.model.vo.TuiJianRenVo;
import com.yl.auth.service.TuiJianRenService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author L
 * @since 2023-06-20
 */
@Service
public class TuiJianRenServiceImpl extends ServiceImpl<TuiJianRenMapper, TuiJianRen> implements TuiJianRenService {

    @Resource
    private TuiJianRenMapper tuiJianRenMapper;
    @Override
    public Page<TuiJianRen> findAllConAndPage(Page<TuiJianRen> tuiJianRenPage, TuiJianRenVo tuiJianRenVo) {
        return tuiJianRenMapper.findAllConAndPage(tuiJianRenPage,tuiJianRenVo);
    }

    @Override
    public List<Long> getReference() {
        return tuiJianRenMapper.getReference();
    }


    @Override
    public void updateByReward(TuiJianRen tuiJianRen) {
        tuiJianRenMapper.updateByReward(tuiJianRen);
    }

    @Override
    public TuiJianRen getByIdTui(Integer id) {
        return tuiJianRenMapper.getByIdTui(id);
    }
}
